<template>
	<view>
		<view class="main_card">
			<view class="cards">
				<view class="settext">
					视频自动连续播放
				</view>	
				<u-switch v-model="checked1"></u-switch>
			</view>
			<u-line color="#f5ece5" />
		</view>
		<view class="main_card">
			<view class="cards">
				<view class="settext">
					允许使用2G/3G/4G网络观看视频
				</view>	
				<u-switch v-model="checked2"></u-switch>
			</view>
			<u-line color="#f5ece5" />
		</view>
		<view class="main_card">
			<view class="cards">
				<view class="settext">
					允许使用2G/3G/4G网络下载视频
				</view>	
				<u-switch v-model="checked3"></u-switch>
			</view>
			<u-line color="#f5ece5" />
		</view>
		<view class="main_card">
			<view class="cards">
				<view class="settext">
					清除缓存
				</view>	
				<view class="settext">
					7.2M
				</view>	
			</view>
			<u-line color="#f5ece5" />
		</view>
		<view class="main_card">
			<view class="cards">
				<view class="settext">
					关于
				</view>	
				<view class="settext">
					>
				</view>	
			</view>
			<u-line color="#f5ece5" />
		</view>
		<view class="logout">
			<u-button type="default" @click="logout">退出登录</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked1: true,
				checked2: false,
				checked3: false,
			}
		},
		methods: {
			logout() {
				uni.removeStorageSync("stuid");
				uni.removeStorageSync("stuname");
				uni.switchTab({
					url: "account"
				})
			}
		}
	}
</script>

<style>
	.cards{
		display: flex;
		justify-content: space-between;
		margin-bottom: 20rpx;
		padding: 0 20rpx;
	}
	.main_card{
		margin-top: 30rpx;
	}
	.settext{
		font-size: 35rpx;
	}
	.logout{
		margin-top: 100rpx;
	}
</style>
